package com.netease.b.b.h;

import android.os.Bundle;
import com.netease.b.b.e.a;
import com.netease.b.b.e.f;
import java.util.Iterator;
import java.util.Set;
import org.json.JSONException;
import org.json.JSONObject;

public class d extends a
{
  public static final String a = "100020444";
  public static final String b = "248858130998b36ac5d42c42b05caa96";
  public static final String d = "b759b840c0971dbd5fb3af77ec7c39c4";
  private static final String e = "http://api.kaixin001.com";
  private static final String f = "https://api.kaixin001.com";
  private static d g;

  public d()
  {
    super("248858130998b36ac5d42c42b05caa96", "b759b840c0971dbd5fb3af77ec7c39c4");
  }

  public static d a()
  {
    if (g == null)
      g = new d();
    return g;
  }

  public static String a(Bundle paramBundle)
  {
    if (paramBundle == null);
    StringBuilder localStringBuilder;
    for (String str1 = ""; ; str1 = localStringBuilder.toString())
    {
      return str1;
      localStringBuilder = new StringBuilder();
      Iterator localIterator = paramBundle.keySet().iterator();
      int i = 1;
      if (!localIterator.hasNext())
        continue;
      String str2 = (String)localIterator.next();
      if (i != 0)
        i = 0;
      while (true)
      {
        localStringBuilder.append(str2 + "=" + paramBundle.getString(str2));
        break;
        localStringBuilder.append("&");
      }
    }
  }

  public int a(com.netease.b.b.e.d paramd)
  {
    b("248858130998b36ac5d42c42b05caa96", "b759b840c0971dbd5fb3af77ec7c39c4");
    return a(new b(), paramd);
  }

  public int a(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, String paramString8, String paramString9, String paramString10, com.netease.b.b.e.d paramd)
  {
    return a(c.a(paramString1, paramString2, paramString3, paramString4, paramString5, paramString6, paramString7, paramString8, paramString9, paramString10), paramd);
  }

  public String a(String paramString)
  {
    return "http://api.kaixin001.com" + paramString;
  }

  public String b(String paramString)
  {
    return "https://api.kaixin001.com" + paramString;
  }

  public f c(String paramString)
  {
    f localf;
    if (paramString == null)
      localf = new f(7, -5, null, null);
    while (true)
    {
      return localf;
      com.netease.g.b.e("KAIXINService", paramString);
      localf = new f(7);
      try
      {
        JSONObject localJSONObject = new JSONObject(paramString);
        localf.h = localJSONObject.optInt("error_code");
        String str = localJSONObject.optString("error");
        if (str == null)
          continue;
        String[] arrayOfString = str.split(":");
        if (arrayOfString.length < 3)
          continue;
        localf.i = arrayOfString[0];
        localf.j = arrayOfString[2];
      }
      catch (JSONException localJSONException)
      {
        localf.h = -1;
        localf.j = f.a(-1);
        localJSONException.printStackTrace();
      }
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.b.h.d
 * JD-Core Version:    0.6.0
 */